home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-04-27 | 3.3 KB | 105 lines |
- #
- # GPLOTLIB Makefile for Ultrix
- #
- # Note: Ultrix standard cc compiler has a bug with static structure
- # initializations [such as struct ts {int x;} tb[]={{100*0.32}};]
- # and so this makefile uses vcc instead. If this isn't possible,
- # and you get "line xx: illegal initialization", then you'll have
- # to go into the .trm include file and compute all the floating point
- # defines with a calculator.
-
-
- # directory where to install executables on 'make install'
- DEST=/usr/local/lib
- # directory for installing man page on 'make man_install'
- # Well, man page needs to be generated out of source code for library
- # somehow...
- MANDEST=/usr/man/manl
-
- # -DBCOPY if your memcpy() is called bcopy() (a Berkeleyism, right?)
- # -DBZERO if you need to use bzero() (another BSD feature) instead of memset()
- # -DNOCOPY if you don't have a memcpy() by any name
- # -O if you trust your compiler's optimizer
- CC = cc
-
- CFLAGS = -DBCOPY -DBZERO -O #-gx
-
- # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
- # -DAED AED 512 and AED 767
- # -DAPOLLO Apollo workstations
- # -DBITGRAPH BBN BitGraph
- # -DDXY800A Roland DXY800A plotter
- # -DEPSON Epson LX-800, Star NL-10, NX-1000 and lots of others
- # -DFIG Fig graphics language (requires object.h from TransFig)
- # -DHP2648 HP2648, HP2647
- # -DHP26 HP2623A and maybe others
- # -DHP75 HP7580, and probably other HPs
- # -DHPGL HP7475 and (hopefully) lots of others
- # -DHPLJET HP Laserjet
- # -DIMAGEN Imagen laser printers (300dpi) (requires -Iterm also)
- # -DIRIS4D IRIS4D series computer
- # -DKERMIT MS-Kermit Tektronix 4010 emulator
- # -DLATEX LATEX picture environment
- # -DPOSTSCRIPT Postscript
- # -DPROPRINTER IBM Proprinter
- # -DQMS QMS/QUIC laserprinter (Talaris 1200 and others)
- # -DREGIS ReGis graphics (vt125, vt220, vt240, Gigis...)
- # -DSELANAR Selanar
- # -DTEK Tektronix 4010, and probably others
- # -DSUN Sun Microsystems Workstation
- # -DUNIXPC unixpc (ATT 3b1 or ATT 7300)
- # -DUNIXPLOT unixplot
- # -DV384 Vectrix 384 and tandy color printer
-
- # -DEPSON removed just before HP2648.
-
- TERMFLAGS = -I../term -DAED -DBITGRAPH -DDXY800A -DHP2648 \
- -DHP26 -DHP75 -DHPGL -DHPLJET -DIMAGEN -DKERMIT -DLATEX \
- -DPOSTSCRIPT -DPROPRINTER -DQMS -DREGIS -DSELANAR -DTEK \
- -DUNIXPLOT -DV384
-
- # These object files form the gplotlib.ar library
- OBJS = gsr.o gterm.o
-
- # -lplot iff you have -DUNIXPLOT
- # -lsuntool -lsunwindow -lpixrect iff you have -DSUN
- # -lgl_s if IRIS4D
- LIBS = -lm -lplot
-
- bar: $(OBJS) bar.o
- vcc bar.o $(OBJS) $(LIBS) -o bar
-
- bars: $(OBJS) bars.o
- vcc bars.o $(OBJS) $(LIBS) -o bar
-
- pie: $(OBJS) pie.o
- vcc pie.o $(OBJ) $(LIBS) -o bar
-
- all: bar pie
-
- gterm.o: ../term/*.trm gterm.c
- vcc $(CFLAGS) $(TERMFLAGS) -c gterm.c
-
- $(OBJS): gtplot.h gsr.h
-
- clean:
- rm -f *.o *~ *.*_doc
-
- spotless:
- rm -f *.o *~ TAGS bar bars pie cpr docu *.*_doc gplotlib.doc
-
- doc: docu cpr intro.doc gsr.c gsr.h gterm.c gtplot.h
- docu <gsr.c >gsr.c_doc
- docu <gsr.h >gsr.h_doc
- docu <gterm.c >gterm.c_doc
- docu <gtplot.h >gtplot.h_doc
- cpr -ac -C -PBACKSPACE \
- intro.doc gterm.c_doc gtplot.h_doc gsr.c_doc gsr.h_doc >gplotlib.doc
- rm -f gsr.c_doc gsr.h_doc gterm.c_doc gtplot.h_doc
-
- docu: docu.c
- cc docu.c -o docu
-
- cpr: cpr.c
- cc cpr.c -o cpr
-